<#include "*/component/Tags.ftl"/>
<@Title/>
<@ClassAnnotation>
@Getter
@SqlTarget(target = "${entity.table.name}")
</@ClassAnnotation>
<@Class extends='BaseDeleteDTO'>
<#list entity.fields as field>
<@Field field=field type=5>
${'\t'}@SqlColumn(name = "${field.column.name}")
</@Field>
</#list>

${'\t'}@Getter
${'\t'}public static class DeleteCondition extends NotDeleteCondition {
${'\t'}${'\t'}/**
${'\t'}${'\t'}* 主键
${'\t'}${'\t'}*/
${'\t'}${'\t'}@SqlColumn(name = "${entity.primaryField.name}")
${'\t'}${'\t'}@SqlCondition(nullable = false)
${'\t'}${'\t'}private ${entity.primaryField.type} ${entity.primaryField.name};

${'\t'}${'\t'}public DeleteCondition(${entity.primaryField.type} id) {
${'\t'}${'\t'}${'\t'}this.${entity.primaryField.name} = id;
${'\t'}${'\t'}}
${'\t'}}

${'\t'}public ${clazz.name}() {

${'\t'}}

${'\t'}public ${clazz.name}(Date deleteTime) {
${'\t'}${'\t'}super(deleteTime);
${'\t'}}
</@Class>